package com.leyou.sh.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.sh.auth.dto.UserDetail;
import com.leyou.sh.user.dto.UserDTO;
import com.leyou.sh.user.entity.User;

/**
 * @author balisong_fcs
 * @date 2021/1/9 11:00
 * @desc
 */
public interface UserService extends IService<User> {
    Boolean exists(String data, Integer type);

    void sendCode(String phone);

    void registerUser(User user, String code);

    UserDTO queryUserByNameAndPassWord(String username, String password);
}
